import { LeaveBill } from './../interface';
import { Body, Controller, Post } from '@midwayjs/core';

@Controller('/leaveBill')
export class LeaveController {
  @Post('/insert')
  async leaveBillInsert(@Body() leaveBill: LeaveBill) {
    console.log(leaveBill);
    leaveBill.leaveBillId = new Date().getTime();
    return leaveBill;
  }
}
